package com.thunisoft.thread.interrupt;

import java.util.Date;

public class Task implements Runnable {

	private static ThreadLocal<Date> startDate = new ThreadLocal<Date>() {
		protected Date initialValue() {
			return new Date();
		}
	};
	
	@Override
	public void run() {
		int numero=Integer.parseInt("TTT");
	}
	
	public static void main(String[] args) {
		startDate.get();
		Task task=new Task();
		Thread thread=new Thread(task);
		thread.setUncaughtExceptionHandler(new ExceptionHandler());
		Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler());
		thread.start();
	}
}
